﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeFirstExample.Data
{
    public class User
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }

        public byte Gender { get; set; }
        public bool? IsMarried { get; set; }

        //one to many relationship
        public virtual ICollection<Address> Addresses { get; set; }
        
        //one to one relationship
        public virtual Profile Profile { get; set; }

        //many to many relationship
        public virtual ICollection<Lesson> Lessons { get; set; }
    }
}